/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-02-19 19:35:11
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-02-19 19:38:16
 * @FilePath: \utils_ts\9.联合交叉类型.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export {};

// |   &

// && 优先于 ||
// console.log(1||(2&&3)); // 1

// & 优先于 |

let obj: {name: string} & {age: number} | {name: number, age: string}

obj = {
  name: '123',
  age: 123
}

obj = {
  name: 123,
  age: '123'
}